package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.OrderDetailMapper;
import com.loser.csp.dal.model.OrderDetail;
import com.loser.csp.service.backmanager.OrderDetailServices;
@Component("orderDetailServices")
public class OrderDetailServicesImpl implements OrderDetailServices {
    @Autowired
    private OrderDetailMapper orderDetailMapper;
    @Override
    public OrderDetail selectByOrderdetailid(Integer orderdetailid) {
        return orderDetailMapper.selectByOrderdetailid(orderdetailid);
    }

    @Override
    public int deleteByOrderdetailid(Integer orderdetailid) {
        return orderDetailMapper.deleteByOrderdetailid(orderdetailid);
    }

    @Override
    public int insertOrderDetail(OrderDetail record) {
        return orderDetailMapper.insertOrderDetail(record);
    }

    @Override
    public int updateByOrderDetail(OrderDetail record) {
        return orderDetailMapper.updateByOrderDetail(record);
    }

}
